/**
 * 
 */
package com.ofek.eventos.db.datatypes.helptypes;

import com.ofek.applicationbase.forms.FormField;
import com.ofek.base.db.DataField;
import com.ofek.base.db.DataTypeClass;

/**
 * @author Ofek
 *
 */
@DataTypeClass
public class EventRequest {
	@DataField(isKey = true,isAutoIncrement=true,isNullable=false)
	@FormField
	public long rid;
	@DataField(isKey = true,references = UserInfo.class, referenceField = "uid")
	@FormField
	public int uid;
	public static final String ADD = "ADD";
	public static final String UPDATE = "UPDATE";
	public static final String REMOVE = "REMOVE";
	public String type;
	@DataField(isKey = true,references = EventInfo.class, referenceField = "eid")
	@FormField
	public long eid;
	@DataField(isKey = true,references = EventInfo.class, referenceField = "eidOwner")
	@FormField
	public int eidOwner;
	@DataField(isKey = true,references = EventInfo.class, referenceField = "ts")
	@FormField
	public long ts;
	@DataField(isKey = true,references = EventInfo.class, referenceField = "tsOwner")
	@FormField
	public int tsOwner;
}
